<script setup></script>

<template>
  <header>
    <slot name="header"></slot>
  </header>
  <main>
    <slot></slot>
  </main>
  <footer>
    <slot name="footer"></slot>
  </footer>
</template>
<!-- <template>
  <div class="card">
    <div v-if="$slots.header" class="card-header">
      <slot name="header" />
    </div>
    <div v-if="$slots.default" class="card-content">
      <slot />
    </div>
    <div v-if="$slots.footer" class="card-footer">
      <slot name="footer" />
    </div>
  </div>
</template> -->

<style lang="scss" scoped>
.card {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
}

.card-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 8px 16px;
}

.card-content {
  padding: 8px 16px;
}

.card-footer {
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  padding: 8px 16px;
}
</style>
